package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.SchemaQualifiedName;

/**
 * @author Bright Lee
 */
public final class DropCharacterSetStatement implements SqlSchemaManipulationStatement {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName characterSetName;

    public DropCharacterSetStatement(int beginIndex,
                                     SchemaQualifiedName characterSetName) {
        this.beginIndex = beginIndex;
        this.endIndex = characterSetName.getEndIndex();
        this.characterSetName = characterSetName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getCharacterSetName() {
        return characterSetName;
    }

}
